<%--
  Created by IntelliJ IDEA.
  User: 27872
  Date: 2025/6/25
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<html>
<head>
    <title>志愿者添加</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        .form-container {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            padding: 30px;
            max-width: 600px;
            margin: 30px auto;
        }
        .header {
            background-color: #4e73df;
            color: white;
            padding: 15px 0;
            border-radius: 10px 10px 0 0;
            margin-bottom: 20px;
        }
    </style>
</head>
<body class="bg-light">
<div class="container">
    <div class="header text-center">
        <h2><i class="bi bi-person-plus"></i> 志愿者添加</h2>
    </div>

    <div class="form-container">
         <form action="${pageContext.request.contextPath}/volunteer/add" method="post">
             <div class="mb-3">
                 <label for="userid" class="form-label">用户ID</label>
                 <input type="text"  class="form-label" id="userid" name="userid" required>
             </div>

             <div class="mb-3">
                 <label for="url" class="form-label">头像</label>
                  <input type="file"  accept="image/jpeg,image/png,image/gif" class="form-label" id="url" name="url" required>
             </div>

             <div class="mb-3">
                 <label for="name" class="form-label">名字</label>
                  <input type="text"  class="form-label" id="name" name="name" required>
             </div>

             <div class="mb-4">
                 <label for="sex" class="form-label">性别</label>
                 <select class="form-label" id="sex" name="sex">
                     <option value="男">男</option>
                     <option value="女">女</option>
                 </select>
             </div>

             <div class="mb-3">
                 <label for="birthdate" class="form-label">生日</label>
                <input type="text"  class="form-label" id="birthdate" name="birthdate" required>
             </div>

             <div class="mb-3">
                 <label for="profession" class="form-label">职业</label>
                  <input type="text"  class="form-label" id="profession"  name="profession" required>
             </div>

             <div class="mb-3">
                 <label for="skills" class="form-label">技能</label>
                  <input type="text" class="form-label" id="skills" name="skills" required>
             </div>

             <div class="mb-3">
                 <label for="experience" class="form-label">经历</label>
                 <input type="text" class="form-label" id="experience" name="experience" required>
             </div>

             <div class="mb-3">
                 <label for="phone" class="form-label">电话</label>
                  <input type="text" class="form-label" id="phone" name="phone" required>
             </div>

             <div class="mb-3">
                 <label for="servicehours" class="form-label">服务时长</label>
                  <input type="text" class="form-label" id="servicehours" name="servicehours" required>
             </div>

             <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                 <a href="${pageContext.request.contextPath}/volunteer/list" class="btn btn-secondary me-md-2">
                     <i class="bi bi-arrow-left"></i> 返回
                 </a>
                 <button type="submit" class="btn btn-primary">
                     <i class="bi bi-check-circle"></i> 提交
                 </button>
             </div>
         </form>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
